package com.ljh.cloudmusic.mapper;

import com.ljh.cloudmusic.model.User;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author: Themberfue
 * @date: 2025/3/6 21:09
 * @description:
 */
@Mapper
public interface UserMapper {
   User selectLoginByUsername(String username);

   Integer insertUserByUsername(User user);
   Integer insertUserByEmail(User user);

   String selectUserByUUID(Integer uuid);

   Integer updateUserInfo(Integer uuid, String username, String email, Integer gender, String location);

   Integer updatePasswordByUUID(Integer uuid, String newPassword);
   Integer updatePasswordByUsername(String username, String newPassword);

   Integer updateAvatar(Integer uuid, String avatarUrl);

   String selectUserByEmail(String email);

   String selectEmailByUsername(String username);

}
